class SoundTester < Sketch3D
  def container
    super do
      #object :class => PHelper::SoundMinim, :file => Dir.pwd + "/data/assassins.mp3" do
      object :class => PHelper::SoundEss, :file => Dir.pwd + "/data/assassins_short_mono.wav" do
        block do
          background 0
          @rx = pi_pulse(20000)
          @rz = pi_pulse(10000)
        end
        (-12..12).each do |x|
          box :tx => x/8.0, :x => 0.10, :fill => [0.5, x % 2, 1] do
            block { @sy = fft(x + 12) / 10.0 }
          end
        end
      end
    end
  end
end
